package cn.service.feign;

import cn.service.entiy.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient("User")
public interface UserFeign {

    @PostMapping("api/user/reg")
    int reg(User user);

    @PostMapping("api/user/login")
    Boolean login(User user);

    @PostMapping("api/user/getUser")
    User getUserById(Integer userId);
}
